//
// C++ Implementation: mattitudewidgetplugin
//
// Description: 
//
//
// Author: Kevin Phelan, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "mattitudewidgetplugin.h"


MAttitudeWidgetPlugin::MAttitudeWidgetPlugin(QObject *parent)
    : QObject(parent)
{
    initialized = false;
}

void MAttitudeWidgetPlugin::initialize(QDesignerFormEditorInterface * /* core */)
{
    if (initialized)
        return;

    initialized = true;
}

bool MAttitudeWidgetPlugin::isInitialized() const
{
    return initialized;
}

QWidget *MAttitudeWidgetPlugin::createWidget(QWidget *parent)
{
    return new MAttitudeWidget(parent);
  
}

QString MAttitudeWidgetPlugin::name() const
{
    return "MAttitudeWidget";
}

QString MAttitudeWidgetPlugin::group() const
{
    return "Archimedes";
}

QIcon MAttitudeWidgetPlugin::icon() const
{
    return QIcon(":/logo.png");
}

QString MAttitudeWidgetPlugin::toolTip() const
{
    return "MAttitudeWidget";
}

QString MAttitudeWidgetPlugin::whatsThis() const
{
    return "";
}

bool MAttitudeWidgetPlugin::isContainer() const
{
    return false;
}

QString MAttitudeWidgetPlugin::domXml() const
{
    return "<widget class=\"MAttitudeWidget\" name=\"statusBar\">\n"
            " <property name=\"geometry\">\n"
            "  <rect>\n"
            "   <x>0</x>\n"
            "   <y>0</y>\n"
            "   <width>100</width>\n"
            "   <height>40</height>\n"
            "  </rect>\n"
            " </property>\n"
            " <property name=\"toolTip\" >\n"
            "  <string>An attitude widget</string>\n"
            " </property>\n"
            " <property name=\"whatsThis\" >\n"
            "  <string>A An attitude widget</string>\n"
            " </property>\n"
            "</widget>\n";
}

QString MAttitudeWidgetPlugin::includeFile() const
{
    return "MAttitudeWidget";
}

QString MAttitudeWidgetPlugin::codeTemplate() const
{
    return "";
}

Q_EXPORT_PLUGIN(MAttitudeWidgetPlugin)
//Q_EXPORT_PLUGIN2(PStyledButton, MAttitudeWidgetPlugin)